<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Inicio | Eletronorte</title>
        <h:outputStylesheet library="css" name="style.css" />
        <link rel="icon" href="#{request.contextPath}/_img/favicon.ico" type="image/ico" />
    </h:head>

    <h:body>
        <h:form>
            <p:poll interval="10" update="@this" />
        </h:form>

        <div id="interface">
            <table id="table-header" cellpadding="0" cellspacing="0">
                <!-- TOPO -->
                <tr>
                    <td><ui:include src="/pages/template/header.xhtml" /></td>
                </tr>

                <!--  MENU -->
                <tr>
                    <td><ui:include src="/pages/protected/admin/menu.xhtml" /></td>
                </tr>
            </table>

            <!-- PAGINA INICIAL -->
            <article id="inicio"> <section id="atalhos">
                    <h:form id="form_atalhos">
                        <p:growl for="sucesso" id="sucesso" life="4000" showDetail="true" autoUpdate="true" />
                        <section id="cadastrar">
                            <p:commandLink action="/pages/protected/admin/cadastrar/formulario.xhtml"
                                           actionListener="#{formularioBean.limpaFormulario()}"
                                           immediate="true" ajax="false">
                                <h:graphicImage library="img" name="icon-81-document-add.svg" width="100" height="100" />
                            </p:commandLink>
                            <p:commandLink action="/pages/protected/admin/cadastrar/formulario.xhtml"
                                           actionListener="#{formularioBean.limpaFormulario()}"
                                           immediate="true" ajax="false">
                                <p>Cadastrar Formulário</p>
                            </p:commandLink>
                        </section>
                        <section id="buscar">
                            <p:commandLink action="/pages/protected/admin/buscar/formulario/codigo.xhtml"
                                           actionListener="#{formularioBean.limpaFormulario()}"
                                           immediate="true" ajax="false">
                                <h:graphicImage library="img" name="icon-74-document-search.svg" width="100" height="100" />
                            </p:commandLink>
                            <p:commandLink action="/pages/protected/admin/buscar/formulario/codigo.xhtml"
                                           actionListener="#{formularioBean.limpaFormulario()}"
                                           immediate="true" ajax="false">
                                <p>Buscar Formulário</p>
                            </p:commandLink>
                        </section>
                    </h:form>
                </section></article>

            <!-- RODAPE -->
            <table id="table-footer">
                <ui:include src="/pages/template/footer.xhtml" />
            </table>
        </div>
    </h:body>
</html>
